function Child(props) {
  // 2. 子组件通过参数来接受父组件传递的数据
  console.log(props);

  return (
    <div>
      Child...
      <span>姓名：{props.name}</span>
      <span>年龄：{props.age}</span>
    </div>
  );
}

export default Child;
